package com.qimu.saiyou.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qimu.saiyou.model.dto.compete.CompeteQueryRequest;
import com.qimu.saiyou.model.entity.Comment;
import com.qimu.saiyou.model.vo.CommentVo;

import java.util.List;

/**
 * @author: FeiXiang
 * @description 针对表【comment(评论表)】的数据库操作Service
 * @createDate 2024-03-28 16:03:50
 */
public interface CommentService extends IService<Comment> {
    /**
     * 有效注释
     *
     * @param comment 议论
     * @param add     添加
     */
    public void validComment(Comment comment, boolean add);

    List<CommentVo> firstComment(List<CommentVo> comments);

    CommentVo getCommentVo(Comment comment);

    QueryWrapper<Comment> getQueryWrapper(CompeteQueryRequest competeQueryRequest);
}
